
import re
import pepe.p_dm.sdb as s
import pepe.p_dm.sdb as psb

if 1:

    dbl = lambda x: psb.slist(x)
    dbr = lambda x, db: psb.sread(x, db)
    
    dbl('C:\AFT\pepe\pydl.db')
    '''
    for i in dbr('cz_first_names_t','C:\AFT\pepe\pydl.db'):
        #if len(i) < 5: print i
        if re.search('p', i): print i
    '''

if 1:
    #d = {'one':1, 'two':2}
    #s.swrite('xxx', d, 'mysdb')
    
    d = s.sread('xxx', 'mysdb')
    print d['one']
    # 1
